﻿{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--左侧导航结束-->
   <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		table, thead, tbody, th, td, tr { 
			display: block; 
		}
		thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    td:nth-of-type(1):before { content: "教师编号"; }
			td:nth-of-type(2):before { content: "教师姓名"; }
			td:nth-of-type(3):before { content: "任课情况"; }
			td:nth-of-type(4):before { content: "总计课时量"; }
        }	
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">教师周课时列表</p>
                </div>
                    <div class="box-body">
						<form name="myform" method="get" action="">
                        <div class="form-group">
						  <label class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500; width:90px;">
							   教师姓名：
						  </label>
						  <div class="input-group col-md-2 col-xs-8" style="float:left; margin-right:4px;">
							   <input type="text" class="form-control" name="staff_name" value="{%$staff_name%}">
						  </div> 
						  <input type="hidden" name="a" value="syllabus.stafflist">
                          <button type="submit" class="btn btn-primary btn-sm" style="padding:7px 10px;">查 询</button>
						 </div>
						 </form>
                         <table class="table table-bordered" id="mytable">
                           <thead>						 
								  <tr>
									 <td>教师编号</td>
									 <td>教师姓名</td>
									 <td>任课情况</td>
									 <td>总计课时量</td>
								  </tr>
							</thead>
							<tbody>
							{%foreach from=$staff_slists key=key item=value%}
								  <tr>
									 <td>{%$value.staff_number%}</td>
									 <td>{%$value.staff_name%}</td>
									 <td>
									 {%foreach from=$value.syllabus key=k item=v%}
										 
										 学科：{%$k%}，任课班级：{%foreach from=$v.class key=t item=s%}{%$t%} {%/foreach%}，合计课时量：{%$v.hour%}<br/>
										 
									 {%/foreach%}								 
									 </td>
									 <td>{%$value.hour_all%}</td>
								 </tr>
							{%/foreach%}

						   </tbody>
                         </table> 
						 {%$page%}
				    </div><!--box-body -->
             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
